<script>
//导入应用模板，并局部注册
import OverLapTemplates from '../../overlaptemplates/OverLapTemplates';

//应用模板加载组件
export default {
  name: 'OverLapMapCard',
  components: { OverLapTemplates },
  props: {
    allOptions: {
      type: Object,
      default: () => {},
    },
    mode: {
      type: String,
      default() {
        return 'view';
      },
    },
  },
  data() {
    return {};
  },
  render(h) {
    if (!this.allOptions) return;
    return h('OverLapTemplates', {
      props: {
        options: {
          ...this.allOptions,
          mode: this.mode,
        },
      },
    });
  },
};
</script>
